package com.chinasoft.tw.service.Caochengde;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Caochengde implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public Caochengde() {
        this.name = "曹成德";
        wordList.add("hello");
        // 若有更多内容可继续添加
    }

    @Override
    public Info getTrueWord() {
        String randomWord = wordList.get(random.nextInt(wordList.size()));
        return new Info(name, randomWord);
    }
}